/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.zb.hms.base.util.stringUtil;

import java.util.regex.Pattern;


/**
 *
 * @Description
 * @author zb
 * @datetime 2017-8-10 21:23:44
 * @version V1.0
 */
public class RegexConstants {
    /**
     * 判断是否是有数字和字符的后缀
     */
    public static final String ISURL= "\\S+\\.[a-zA-Z]+\\d?";
    /*字母开头，字母数字下划线组合*/
    public static final String  ISALPHANUMERIC="^[A-Za-z][A-Za-z0-9_]+$";
    public static final String  ISALPHANUMERICMES="以字母开头的字母，数字和下划线组合"; 
     /*字母数字下组合*/
    public static final String  ISCHARANDNUMBER="[A-Za-z0-9]+$";
    public static final String  ISCHARANDNUMBERMES="只能输入字母，数字";
    /*字母，数字，汉字组合*/
    public static final String  ISNAME="[A-Za-z0-9\\u4E00-\\u9FA5]{1,8}$";
    public static final String  ISNAMEMES="用户名只能输入｛1，8｝的字母,数字,汉字组合";
    /*是否是合法QQ号*/
    public static final String  ISQQ="^[1-9]\\d{4,9}$";
    public static final String  ISQQMES="请正确填写您的QQ号码";
     /*是否是合法手机号*/
    public static final String  ISPHONE="^(13[0-9]{9})|(18[0-9]{9})|(14[0-9]{9})|(17[0-9]{9})|(15[0-9]{9})$";
    public static final String  ISPHONEMES="请正确填写您的手机号码";
      /*是否是数字*/
    public static final String  ISNUMBER="\\d+$";
    public static final String  ISNUMBERMES="只能输入数字";
   
 
    
   
    public static void main(String[] args) {
       
//        String s="12";
//                System.out.println("alphanumeric".toUpperCase());
//                System.out.println(Pattern.matches(ISNAME, "!qq"));
    }
    
}
